package org.example.pmsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.pmsystem.entity.Attend;
import org.example.pmsystem.entity.AttendSummary;

@Mapper
public interface AttendMapper extends BaseMapper<Attend> {
    AttendSummary selectAttendSumBySnoDate(@Param("sNo")String sNo,@Param("month")String month);
    Attend selectAttendBySnoDate(Attend attend);
    void insertAttend(Attend attend);
    void insertEmptyAttendSummary(@Param("sNo")String sNo,@Param("month")String month);
    void addSignInTimes(@Param("sNo")String sNo,@Param("month")String month);
    void addlateTimes(@Param("sNo")String sNo,@Param("month")String month);
    void addleaveTimes(@Param("sNo")String sNo,@Param("month")String month);
}